package com.weichen.xd.data;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by Dune on 2017/9/11.
 */

public class HeWeather5 {
    /**
     * aqi : {"city":{"aqi":"72","co":"1","no2":"36","o3":"72","pm10":"66","pm25":"32","qlty":"良","so2":"18"}}
     * basic : {"city":"青岛","cnty":"中国","id":"CN101120201","lat":"36.08298111","lon":"120.35517120","update":{"loc":"2017-09-08 14:47","utc":"2017-09-08 06:47"}}
     * daily_forecast : [{"astro":{"mr":"19:39","ms":"07:16","sr":"05:36","ss":"18:17"},"cond":{"code_d":"100","code_n":"100","txt_d":"晴","txt_n":"晴"},"date":"2017-09-08","hum":"73","pcpn":"0.0","pop":"0","pres":"1012","tmp":{"max":"28","min":"23"},"uv":"8","vis":"20","wind":{"deg":"190","dir":"南风","sc":"微风","spd":"14"}},{"astro":{"mr":"20:15","ms":"08:20","sr":"05:37","ss":"18:15"},"cond":{"code_d":"100","code_n":"104","txt_d":"晴","txt_n":"阴"},"date":"2017-09-09","hum":"73","pcpn":"0.0","pop":"0","pres":"1012","tmp":{"max":"28","min":"23"},"uv":"8","vis":"20","wind":{"deg":"175","dir":"南风","sc":"微风","spd":"12"}},{"astro":{"mr":"20:54","ms":"09:25","sr":"05:37","ss":"18:14"},"cond":{"code_d":"305","code_n":"305","txt_d":"小雨","txt_n":"小雨"},"date":"2017-09-10","hum":"78","pcpn":"43.3","pop":"87","pres":"1010","tmp":{"max":"24","min":"19"},"uv":"1","vis":"14","wind":{"deg":"183","dir":"南风","sc":"3-4","spd":"19"}}]
     * hourly_forecast : [{"cond":{"code":"101","txt":"多云"},"date":"2017-09-08 16:00","hum":"69","pop":"0","pres":"1010","tmp":"26","wind":{"deg":"197","dir":"西南风","sc":"微风","spd":"15"}},{"cond":{"code":"100","txt":"晴"},"date":"2017-09-08 19:00","hum":"80","pop":"0","pres":"1011","tmp":"24","wind":{"deg":"192","dir":"西南风","sc":"微风","spd":"12"}},{"cond":{"code":"100","txt":"晴"},"date":"2017-09-08 22:00","hum":"83","pop":"0","pres":"1012","tmp":"24","wind":{"deg":"204","dir":"西南风","sc":"微风","spd":"12"}}]
     * now : {"cond":{"code":"100","txt":"晴"},"fl":"26","hum":"78","pcpn":"0","pres":"1010","tmp":"25","vis":"7","wind":{"deg":"174","dir":"南风","sc":"3-4","spd":"13"}}
     * status : ok
     * suggestion : {"air":{"brf":"良","txt":"气象条件有利于空气污染物稀释、扩散和清除，可在室外正常活动。"},"comf":{"brf":"较舒适","txt":"白天天气晴好，同时较大的空气湿度，会使您在午后略感闷热，但早晚仍很凉爽、舒适。"},"cw":{"brf":"较适宜","txt":"较适宜洗车，未来一天无雨，风力较小，擦洗一新的汽车至少能保持一天。"},"drsg":{"brf":"热","txt":"天气热，建议着短裙、短裤、短薄外套、T恤等夏季服装。"},"flu":{"brf":"少发","txt":"各项气象条件适宜，无明显降温过程，发生感冒机率较低。"},"sport":{"brf":"较适宜","txt":"天气较好，但由于风力较大，推荐您在室内进行低强度运动，若在户外运动请注意避风。"},"trav":{"brf":"适宜","txt":"天气较好，风稍大，但温度适宜，是个好天气哦。适宜旅游，您可以尽情地享受大自然的无限风光。"},"uv":{"brf":"强","txt":"紫外线辐射强，建议涂擦SPF20左右、PA++的防晒护肤品。避免在10点至14点暴露于日光下。"}}
     */

    @SerializedName("aqi")
    private Aqi aqi;
    @SerializedName("basic")
    private BasicEntity basic;
    @SerializedName("now")
    private Now now;
    @SerializedName("status")
    private String status;
    @SerializedName("suggestion")
    private Suggestion suggestion;
    @SerializedName("daily_forecast")
    private List<DailyForecast> dailyForecast;
    @SerializedName("hourly_forecast")
    private List<HourlyForecast> hourlyForecast;

    public Aqi getAqi() {
        return aqi;
    }

    public void setAqi(Aqi aqi) {
        this.aqi = aqi;
    }

    public BasicEntity getBasic() {
        return basic;
    }

    public void setBasic(BasicEntity basic) {
        this.basic = basic;
    }

    public Now getNow() {
        return now;
    }

    public void setNow(Now now) {
        this.now = now;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Suggestion getSuggestion() {
        return suggestion;
    }

    public void setSuggestion(Suggestion suggestion) {
        this.suggestion = suggestion;
    }

    public List<DailyForecast> getDailyForecast() {
        return dailyForecast;
    }

    public void setDailyForecast(List<DailyForecast> dailyForecast) {
        this.dailyForecast = dailyForecast;
    }

    public List<HourlyForecast> getHourlyForecast() {
        return hourlyForecast;
    }

    public void setHourlyForecast(List<HourlyForecast> hourlyForecast) {
        this.hourlyForecast = hourlyForecast;
    }


    public static class BasicEntity {
        /**
         * city : 青岛
         * cnty : 中国
         * id : CN101120201
         * lat : 36.08298111
         * lon : 120.35517120
         * update : {"loc":"2017-09-08 14:47","utc":"2017-09-08 06:47"}
         */

        @SerializedName("city")
        private String city;
        @SerializedName("cnty")
        private String cnty;
        @SerializedName("id")
        private String id;
        @SerializedName("lat")
        private String lat;
        @SerializedName("lon")
        private String lon;
        @SerializedName("update")
        private UpdateEntity update;

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getCnty() {
            return cnty;
        }

        public void setCnty(String cnty) {
            this.cnty = cnty;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getLat() {
            return lat;
        }

        public void setLat(String lat) {
            this.lat = lat;
        }

        public String getLon() {
            return lon;
        }

        public void setLon(String lon) {
            this.lon = lon;
        }

        public UpdateEntity getUpdate() {
            return update;
        }

        public void setUpdate(UpdateEntity update) {
            this.update = update;
        }

        public static class UpdateEntity {
            /**
             * loc : 2017-09-08 14:47
             * utc : 2017-09-08 06:47
             */

            @SerializedName("loc")
            private String loc;
            @SerializedName("utc")
            private String utc;

            public String getLoc() {
                return loc;
            }

            public void setLoc(String loc) {
                this.loc = loc;
            }

            public String getUtc() {
                return utc;
            }

            public void setUtc(String utc) {
                this.utc = utc;
            }
        }
    }

}
